public class servlet {
   //组长没代码
   //好像有点小问题
   //+10086
   @WebServlet(name = "helloServlet", value = "/hello-servlet")
   public class HelloServlet extends HttpServlet {
       private String message;

       public void init() {
           message = "Hello World!";
       }

       public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
           response.setContentType("text/html");

           // Hello
           PrintWriter out = response.getWriter();
           out.println("<html><body>");
           out.println("<h1>" + message + "</h1>");
           out.println("</body></html>");
       }

       public void destroy() {
       }
   }
}
